import SMERouter from "sme-router"
import axios from "axios";

//引入路由
import adminListRouter from "$r/adminList";
import loginRouter from "$r/login";
import advRouter from "$r/adv";
import advListRouter from "$r/advList";

const router = new SMERouter('app', 'html5')
// console.log(router)
window.router = router
router.route("/login", loginRouter)
//一级路由配置
router.route("/adv", advRouter)
//二级路由配置
router.route("/adv/adminList", adminListRouter)
router.route("/adv/advList",advListRouter)

